package linkwechat.mapper.system;

import linkwechat.pojo.LinkRole;
import linkwechat.pojo.SysUserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysUserRoleMapper {


    //   根据用户id查询角色
    List<LinkRole> selectRoleByUserId(Long userId);


    //   批量新增用户角色信息
    public int batchUserRole(List<SysUserRole> userRoleList);


    //    通过用户ID删除用户和角色关联
    public int deleteUserRoleByUserId(Long userId);


}
